from django.conf.urls import url
from . import views
from rest_framework.routers import DefaultRouter,SimpleRouter
# ^areas/$ [name='areas-list'],views.BookInfoViewSet.as_view({'get': 'list'})),
# ^areas/(?P<pk>[^/.]+)/$ [name='areas-detail']
urlpatterns = [
    # url(r'^areas/$',views.AreaViewSet.as_view({'get':'list'})),
    # url(r'^areas/(?P<pk>[^/.]+)/$', views.AreaViewSet.as_view({'get':'retrieve'}))
]

router = DefaultRouter()

router.register(r'areas', views.AreaViewSet,base_name='areas')

urlpatterns += router.urls
